package com.yunsom.testdemo.design.vistor;

import java.util.Random;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/19 16:22
 */

public class Engineer extends AbstractStaff {

  public Engineer(String name) {
    super(name);
  }

  @Override
  public void accept(Visitor visitor) {
    visitor.visit(this);
  }

  public int getCodeLines(){
    return new Random().nextInt(10)*100000;
  }

}
